package com.leyou.pojo.dto;

import com.leyou.common.dto.BaseDTO;
import com.leyou.common.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class UserDto extends BaseDTO {
    private Long id;
    private String username;
    private String phone;


    public <T> T toEntity(Class<T> entityClass) {
        return super.toEntity(entityClass);
    }

    public UserDto(BaseEntity entity) {
        super(entity);
    }
}
